package people;

/**
 * The Patient class; this represents patients in our system
 * 
 * @author Peter
 * 
 * @version $Revision: 1.0 $
 */
public class Patient extends Person {

	/**
	 * Constructor that creates patients
	 * 
	 * @param fName
	 * @param lName
	 */
	public Patient(String fName, String lName) {
		super(fName, lName);
		// could auto-gen username
		MYLOGGER.info("In Patient constructor");

		// create();
	}

	/**
	 * A more verbose constructor for testing
	 * 
	 * @param fName
	 * @param lName
	 * @param username
	 * @param password
	 */
	public Patient(String fName, String lName, String username, String password) {
		super(fName, lName);
		MYLOGGER.info("In Patient constructor");

		this.setUserPass(password);
		this.setUserID(username);
		// create();
	}

	/**
	 * Default patient constructor
	 */
	public Patient() {
		super();
		MYLOGGER.info("In Patient constructor");
	}

	/**
	 * Ideally a button on the UI, when pressed this method would call on
	 * display to display information about patient details.
	 */
	public void viewMedHist() {
		MYLOGGER.info("Patient is trying to view Medical History");
	}

	/**
	 * Overrides the default toString method
	 * 
	 * @return Patient's name
	 */
	public String toString() {
		return "Patient: " + this.getFirstName() + " " + this.getLastName();
	}

	// public void create() {
	// super.create();
	// }
}
